﻿@model SIBI.Models.Movimiento

@{
    ViewBag.Title = "Editar";
}

<h2>Editar</h2>
<script src="@Url.Content("~/Scripts/myScript3.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/myScript4.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script type="text/javascript">
    disableParDropList(['#BienInformaticoId']);
</script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
        <legend>Movimiento</legend>

        @Html.HiddenFor(model => model.MovimientoId)

    <br />
    <fieldset>
    <legend>Datos Básicos</legend>
    <br />
        <table width="100%">
            <tr>
            <td>
                <div class="editor-label">
                    Serial (*)
                </div>
                <div class="desabilitado">
                    @Html.DropDownList("BienInformaticoId", String.Empty)<br />
                    @Html.ValidationMessageFor(model => model.BienInformaticoId)
                </div>
            </td>
            <td>
                <div class="editor-label">
                      Fecha Movimiento
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.dfmo)
                    @Html.ValidationMessageFor(model => model.dfmo)
                </div>
            </td>
            </tr>
        </table>
    </fieldset>
    <fieldset>
    <legend>Datos Movimiento</legend>
        <br />
        <table width ="100%">
        <tr>
            <td width="50%">
                 <div class="editor-label">
                    Localidad (*)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.localidad_id)
                    @Html.ValidationMessageFor(model => model.localidad_id)
                </div>
            </td>
            <td width="50%">    
                <div class="editor-label">
                    Ubicación Física (*)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.cubf)
                    @Html.ValidationMessageFor(model => model.cubf)
                </div>
            </td>
        </tr>
            <tr>
                <td width ="50%">
                    <div class="editor-label">
                        Tipo Movimiento
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.ctmo)
                        @Html.ValidationMessageFor(model => model.ctmo)
                    </div>
                <td width ="50%">
                    <div class="editor-label">
                        Causa Movimiento (*)
                    </div>
                    <div class="editor-field">
                        @Html.DropDownList("CausaMovimientoId", String.Empty)
                        @Html.ValidationMessageFor(model => model.CausaMovimientoId)
                    </div>
                </td>
            </tr>
        </table>
    </fieldset>
    <fieldset>
    <legend>Datos Informatívos</legend>
    <br />
                <div class="editor-label">
                    Observación
                </div>
                <div class="editor-field">
                    @Html.TextAreaFor(model => model.cobs)
                    @Html.ValidationMessageFor(model => model.cobs)
                </div>
    </fieldset>
        <p>
            <input type="submit" value="Salvar" />
        </p>
    
}

<div>
    @Html.ActionLink("Menú Anterior", "SearchIndex")
</div>
